home *** CD-ROM | disk | FTP | other *** search
Wrap
System: ntp version 3.4 Patch #: 3 Priority: Subject: Use new RCS headers. From: Description: Use new RCS headers. Repeat-By: Fix: From rn, say "| patch -p -N -d DIR", where DIR is your ntp source directory. Outside of rn, say "cd DIR; patch -p -N <thisarticle". If you don't have the patch program, apply the following by hand, or get patch (version 2.0, latest patchlevel). After patching: make depend make make install If patch indicates that patchlevel is the wrong version, you may need to apply one or more previous patches, or the patch may already have been applied. See the patchlevel.h file to find out what has or has not been applied. In any event, don't continue with the patch. If you are missing previous patches they can be obtained from me: Louis A. Mamakos louie@trantor.umd.edu You can also get the patches via anonymous FTP from trantor.umd.edu. Index: patchlevel.h Prereq: 2 1c1 < #define PATCHLEVEL 2 --- > #define PATCHLEVEL 3 Index: Makefile Prereq: 3.4.1.1 *** Makefile.old Wed Mar 22 18:35:15 1989 --- Makefile Wed Mar 22 18:35:16 1989 *************** *** 1,6 **** ! # $Header: /usr/users/louie/ntp/RCS/Makefile,v 3.4.1.1 89/03/20 00:01:24 louie Exp $ # # $Log: Makefile,v $ # Revision 3.4.1.1 89/03/20 00:01:24 louie # patch1: Add LIBS macro to Makefile directives which link ntp, ntpdc, ntpd and # patch1: test programs. --- 1,9 ---- ! # $Source: /usr/users/louie/ntp/RCS/Makefile,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:25:14 $ # # $Log: Makefile,v $ + # Revision 3.4.1.2 89/03/22 18:25:14 louie + # patch3: Use new and improved RCS headers. + # # Revision 3.4.1.1 89/03/20 00:01:24 louie # patch1: Add LIBS macro to Makefile directives which link ntp, ntpdc, ntpd and # patch1: test programs. Index: README *** README.old Wed Mar 22 18:35:20 1989 --- README Wed Mar 22 18:35:21 1989 *************** *** 1,4 **** ! README for UNIX NTP release $Date: 89/03/17 18:36:48 $ $Revision: 3.4 $ --- 1,4 ---- ! README for UNIX NTP release $Date: 89/03/22 18:25:34 $ $Revision: 3.4.1.1 $ *************** *** 48,54 **** 7) Fire up ntpd in /etc/rc.local History: ! 2/17/89 Another sort-of-working ntpd. There might still be something weird with the logical clock code; seems to be a little weird. Would really like your comments on this version. --- 48,68 ---- 7) Fire up ntpd in /etc/rc.local History: ! 3/22/89 ! A bunch of minor fixes here an there. The RCS header is being ! updated so that patches that are generated will apply; apparently ! the new version of RCS puts the Locked: status in the $Header: /usr/users/louie/ntp/RCS/README,v 3.4.1.1 89/03/22 18:25:34 louie Exp Locker: louie $. ! ! Minor fiddles to ntpd/ntpdc to eliminate some byte-sex dependencies. ! Changs to ntp_proto.c to fix an mis-interpretation in the packet ! procedure. ! ! The ntp program now uses connected UDP sockets to pick up ICMP ! generated errors. ! ! ntpdc will now select a value of tickadj if you don't specify one. ! ! 3/17/89 Another sort-of-working ntpd. There might still be something weird with the logical clock code; seems to be a little weird. Would really like your comments on this version. Index: extract.pl Prereq: 3.4 *** extract.pl.old Wed Mar 22 18:35:24 1989 --- extract.pl Wed Mar 22 18:35:25 1989 *************** *** 1,6 **** #!/usr/bin/perl # ! # $Header: /usr/users/louie/ntp/RCS/extract.pl,v 3.4 89/03/17 18:36:52 louie Exp $ # $HOST = '10.2.0.96'; if ($#ARGV != 0) { --- 1,6 ---- #!/usr/bin/perl # ! # $Source: /usr/users/louie/ntp/RCS/extract.pl,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:36 $ # $HOST = '10.2.0.96'; if ($#ARGV != 0) { Index: ntp.c Prereq: 3.4.1.2 *** ntp.c.old Wed Mar 22 18:35:28 1989 --- ntp.c Wed Mar 22 18:35:29 1989 *************** *** 1,9 **** #ifndef lint ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntp.c,v 3.4.1.2 89/03/22 17:51:13 louie Exp $"; #endif lint /* * $Log: ntp.c,v $ * Revision 3.4.1.2 89/03/22 17:51:13 louie * Use a connect UDP socket so we can pick up ICMP error messages. * --- 1,12 ---- #ifndef lint ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:22 $"; #endif lint /* * $Log: ntp.c,v $ + * Revision 3.4.1.3 89/03/22 18:29:22 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.2 89/03/22 17:51:13 louie * Use a connect UDP socket so we can pick up ICMP error messages. * Index: ntp.conf Prereq: 3.4 *** ntp.conf.old Wed Mar 22 18:35:32 1989 --- ntp.conf Wed Mar 22 18:35:32 1989 *************** *** 1,4 **** ! # $Header: /usr/users/louie/ntp/RCS/ntp.conf,v 3.4 89/03/17 18:36:57 louie Exp $ # # Local clock parameters # --- 1,4 ---- ! # $Source: /usr/users/louie/ntp/RCS/ntp.conf,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:33:02 $ # # Local clock parameters # Index: ntp.h Prereq: 3.4.1.1 *** ntp.h.old Wed Mar 22 18:35:35 1989 --- ntp.h Wed Mar 22 18:35:36 1989 *************** *** 1,7 **** ! /* $Header: /usr/users/louie/ntp/RCS/ntp.h,v 3.4.1.1 89/03/20 00:02:53 louie Exp $ */ /* * $Log: ntp.h,v $ * Revision 3.4.1.1 89/03/20 00:02:53 louie * 1 * --- 1,10 ---- ! /* $Source: /usr/users/louie/ntp/RCS/ntp.h,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:28:18 $ */ /* * $Log: ntp.h,v $ + * Revision 3.4.1.2 89/03/22 18:28:18 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.1 89/03/20 00:02:53 louie * 1 * Index: ntp_adjust.c Prereq: 3.4.1.1 *** ntp_adjust.c.old Wed Mar 22 18:35:40 1989 --- ntp_adjust.c Wed Mar 22 18:35:41 1989 *************** *** 1,5 **** #ifndef lint ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntp_adjust.c,v 3.4.1.1 89/03/20 00:09:06 louie Exp $"; #endif /* --- 1,5 ---- #ifndef lint ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntp_adjust.c,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:30:52 $"; #endif /* *************** *** 7,12 **** --- 7,15 ---- * 5. of the NTP specification. * * $Log: ntp_adjust.c,v $ + * Revision 3.4.1.2 89/03/22 18:30:52 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.1 89/03/20 00:09:06 louie * patch1: Don't zero the drift compensation or compliance values when a step * patch1: adjustment of the clock occurs. Use symbolic definition of Index: ntp_proto.c Prereq: 3.4.1.2 *** ntp_proto.c.old Wed Mar 22 18:35:46 1989 --- ntp_proto.c Wed Mar 22 18:35:47 1989 *************** *** 1,5 **** #ifndef lint ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntp_proto.c,v 3.4.1.2 89/03/22 18:02:22 louie Exp $"; #endif /* --- 1,5 ---- #ifndef lint ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:32:31 $"; #endif /* *************** *** 10,15 **** --- 10,18 ---- * * * $Log: ntp_proto.c,v $ + * Revision 3.4.1.3 89/03/22 18:32:31 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.2 89/03/22 18:02:22 louie * Add some fiddles for BROADCAST NTP mode. In the receive procedure, set the * reachability shift register of peers that are configured, even if we won't Index: ntp_sock.c Prereq: 3.4 *** ntp_sock.c.old Wed Mar 22 18:35:51 1989 --- ntp_sock.c Wed Mar 22 18:35:52 1989 *************** *** 1,9 **** #ifndef lint ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntp_sock.c,v 3.4 89/03/17 18:37:09 louie Exp $"; #endif /* * $Log: ntp_sock.c,v $ * Revision 3.4 89/03/17 18:37:09 louie * Latest test release. * --- 1,12 ---- #ifndef lint ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntp_sock.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:31:20 $"; #endif /* * $Log: ntp_sock.c,v $ + * Revision 3.4.1.1 89/03/22 18:31:20 louie + * patch3: Use new RCS headers. + * * Revision 3.4 89/03/17 18:37:09 louie * Latest test release. * Index: ntpd.c Prereq: 3.4.1.2 *** ntpd.c.old Wed Mar 22 18:35:57 1989 --- ntpd.c Wed Mar 22 18:35:59 1989 *************** *** 1,9 **** #ifndef lint ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntpd.c,v 3.4.1.2 89/03/22 18:03:17 louie Exp $"; #endif lint /* * $Log: ntpd.c,v $ * Revision 3.4.1.2 89/03/22 18:03:17 louie * The peer->refid field was being htonl()'ed when it was already in network * byte order. --- 1,12 ---- #ifndef lint ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntpd.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:41 $"; #endif lint /* * $Log: ntpd.c,v $ + * Revision 3.4.1.3 89/03/22 18:29:41 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.2 89/03/22 18:03:17 louie * The peer->refid field was being htonl()'ed when it was already in network * byte order. *************** *** 235,246 **** setlogmask(LOG_UPTO(LOG_INFO)); #endif /* LOG_DAEMON */ ! syslog(LOG_NOTICE, "%s version $Revision: 3.4.1.2 $", prog_name); syslog(LOG_NOTICE, "patchlevel %d", PATCHLEVEL); #ifdef DEBUG if (debug) ! printf("%s version $Revision: 3.4.1.2 $ patchlevel %d\n", prog_name, PATCHLEVEL); #endif (void) setpriority(PRIO_PROCESS, 0, -10); --- 238,249 ---- setlogmask(LOG_UPTO(LOG_INFO)); #endif /* LOG_DAEMON */ ! syslog(LOG_NOTICE, "%s version $Revision: 3.4.1.3 $", prog_name); syslog(LOG_NOTICE, "patchlevel %d", PATCHLEVEL); #ifdef DEBUG if (debug) ! printf("%s version $Revision: 3.4.1.3 $ patchlevel %d\n", prog_name, PATCHLEVEL); #endif (void) setpriority(PRIO_PROCESS, 0, -10); Index: ntpdc.c Prereq: 3.4.1.2 *** ntpdc.c.old Wed Mar 22 18:36:03 1989 --- ntpdc.c Wed Mar 22 18:36:04 1989 *************** *** 1,9 **** #ifndef lint ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntpdc.c,v 3.4.1.2 89/03/22 18:04:18 louie Exp $"; #endif /* * $Log: ntpdc.c,v $ * Revision 3.4.1.2 89/03/22 18:04:18 louie * Display dispersion in milliseconds. The peer->refid field was being ntohl()'ed * when it should have stayed in network byte order. --- 1,12 ---- #ifndef lint ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntpdc.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:53 $"; #endif /* * $Log: ntpdc.c,v $ + * Revision 3.4.1.3 89/03/22 18:29:53 louie + * patch3: Use new RCS headers. + * * Revision 3.4.1.2 89/03/22 18:04:18 louie * Display dispersion in milliseconds. The peer->refid field was being ntohl()'ed * when it should have stayed in network byte order. Index: ntpsubs.c Prereq: 3.4 *** ntpsubs.c.old Wed Mar 22 18:36:07 1989 --- ntpsubs.c Wed Mar 22 18:36:08 1989 *************** *** 1,9 **** #ifndef lint ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntpsubs.c,v 3.4 89/03/17 18:37:18 louie Exp $"; #endif lint /* * $Log: ntpsubs.c,v $ * Revision 3.4 89/03/17 18:37:18 louie * Latest test release. * --- 1,12 ---- #ifndef lint ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntpsubs.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:19 $"; #endif lint /* * $Log: ntpsubs.c,v $ + * Revision 3.4.1.1 89/03/22 18:32:19 louie + * patch3: Use new RCS headers. + * * Revision 3.4 89/03/17 18:37:18 louie * Latest test release. * Index: stat.pl Prereq: 3.4.1.1 *** stat.pl.old Wed Mar 22 18:36:11 1989 --- stat.pl Wed Mar 22 18:36:12 1989 *************** *** 1,4 **** --- 1,5 ---- #!/usr/bin/perl + # $Source: /usr/users/louie/ntp/RCS/stat.pl,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:32:28 $ # # Make plots from ntpd syslog messages. Invoked as: # *************** *** 191,197 **** unlink "stats.clk"; } ! ;# $Header: /usr/users/louie/ntp/RCS/stat.pl,v 3.4.1.1 89/03/20 00:14:56 louie Exp $ ;# Process single-character switches with switch clustering. Pass one argument ;# which is a string containing all switches that take an argument. For each --- 192,198 ---- unlink "stats.clk"; } ! ;# $Header: /usr/users/louie/ntp/RCS/stat.pl,v 3.4.1.2 89/03/22 18:32:28 louie Exp Locker: louie $ ;# Process single-character switches with switch clustering. Pass one argument ;# which is a string containing all switches that take an argument. For each Index: test.c Prereq: 3.4 *** test.c.old Wed Mar 22 18:36:15 1989 --- test.c Wed Mar 22 18:36:15 1989 *************** *** 1,9 **** #ifndef lint ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/test.c,v 3.4 89/03/17 18:37:32 louie Exp $"; #endif /* * $Log: test.c,v $ * Revision 3.4 89/03/17 18:37:32 louie * Latest test release. * --- 1,12 ---- #ifndef lint ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/test.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:26 $"; #endif /* * $Log: test.c,v $ + * Revision 3.4.1.1 89/03/22 18:32:26 louie + * patch3: Use new RCS headers. + * * Revision 3.4 89/03/17 18:37:32 louie * Latest test release. *